﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lg.Core.AliHelper
{
    public class AliPayConfig
    {
        /// <summary>
        /// 应用ID,您的APPID
        /// </summary>
        public string? app_id { get; set; }
        /// <summary>
        /// 支付宝网关
        /// </summary>
        public string? gatewayUrl { get; set; }
        /// <summary>
        /// 商户私钥，您的原始格式RSA私钥
        /// </summary>
        public string? private_key { get; set; }
        /// <summary>
        /// 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
        /// </summary>
        public string? alipay_public_key { get; set; }
        /// <summary>
        /// 加密方式
        /// </summary>
        public string sign_type { get; set; } = "RSA2";
        /// <summary>
        /// 编码格式
        /// </summary>
        public string charset { get; set; } = "UTF-8";
        /// <summary>
        /// 同步回调地址
        /// </summary>
        public string? ReturnUrl { get; set; }
        /// <summary>
        /// 异步通知回调地址
        /// </summary>
        public string? NotifyUrl { get; set; }
    }
}
